﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Functions/Forms/Forms.master" AutoEventWireup="true" CodeBehind="SubstitutionForm.aspx.cs" Inherits="HRDexCapstoneProject.Functions.Forms.WebForm4" %>

<%@ Register assembly="EO.Web" namespace="EO.Web" tagprefix="eo" %>

<asp:Content ID="Content1" ContentPlaceHolderID="MainPage" runat="server">
>>>>>>> .r86
    <div>
   <table  id="presentLoad">
        <tr>
            <td colspan="4">
                <asp:ImageButton ID="btnEdit" runat="server" Height="49px" Width="52px"  />
                <asp:ImageButton ID="btnDelete" runat="server" Height="49px" Width="52px" />
            </td> 
        </tr>
        <tr>
        <td>Substitution ID</td>
        <td>
            <asp:TextBox ID="txtSubID" runat="server" Width="166px"></asp:TextBox>
        </td>
        <td colspan="2">&nbsp;</td>
        </tr>
        <tr>
        <td>Name</td>
        <td>
            <asp:TextBox ID="txtName" runat="server" Width="166px"></asp:TextBox>
        </td>
        <td>Status/Rank</td>
        <td>
            <asp:TextBox ID="txtRank" runat="server" Width="166px"></asp:TextBox>
        </td>
        </tr>
        <tr>
        <td>Department</td>
        <td>
            <asp:DropDownList ID="ddlDept" runat="server" DataSourceID="dept" 
                DataTextField="DepartmentName" DataValueField="DeptID" Height="20px" 
                Width="172px">
            </asp:DropDownList>
            <asp:SqlDataSource ID="dept" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT [DeptID], [DepartmentName] FROM [catDepartment]">
            </asp:SqlDataSource>
        </td>
        <td>College</td>
        <td>
            <asp:DropDownList ID="ddlCollege" runat="server" DataSourceID="collge" 
                DataTextField="CollegeName" DataValueField="CollegeID" Height="20px" 
                Width="172px">
            </asp:DropDownList>
            <asp:SqlDataSource ID="collge" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT * FROM [catCollege]"></asp:SqlDataSource>
        </td>
        </tr>
    <tr>
        <td>Present Load Assignment</td>
        <td>
            <asp:TextBox ID="txtPresentLoad" runat="server" Width="166px"></asp:TextBox>
        </td>
        <td>Paying Hour</td>
        <td>
            <asp:TextBox ID="txtPayingHour" runat="server" Width="166px"></asp:TextBox>
        </td>
    </tr>
    <tr>
        <td>Faculty Substituted</td>
        <td colspan="3">
            <asp:DropDownList ID="ddlFac" runat="server" Height="16px" Width="441px" 
                DataSourceID="faculty" DataTextField="Name" DataValueField="EmployeeID">
            </asp:DropDownList>
            <asp:SqlDataSource ID="faculty" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT EmployeeID, LastName + ', ' + FirstName + ', ' + MiddleName AS Name FROM formEmployees">
            </asp:SqlDataSource>
        </td>
    </tr>
       <tr>
        <td colspan="4">Date Substituted</td>
        </tr>
       <tr>
        <td>From</td>
        <td colspan="3">
                    <eo:DatePicker ID="dpFrom" runat="server" ControlSkinID="None" 
                        DayCellHeight="15" DayCellWidth="31" DayHeaderFormat="Short" DisabledDates="" 
                        OtherMonthDayVisible="True" SelectedDates="" TitleFormat="MMMM, yyyy" 
                        TitleLeftArrowImageUrl="DefaultSubMenuIconRTL" 
                        TitleRightArrowImageUrl="DefaultSubMenuIcon" 
                VisibleDate="2012-01-01">
                        <CalendarStyle CssText="background-color:white;border-bottom-color:Silver;border-bottom-style:solid;border-bottom-width:1px;border-left-color:Silver;border-left-style:solid;border-left-width:1px;border-right-color:Silver;border-right-style:solid;border-right-width:1px;border-top-color:Silver;border-top-style:solid;border-top-width:1px;color:#2C0B1E;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;" />
                        <TitleStyle CssText="font-family:Verdana;font-size:8.75pt;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;" />
                        <TitleArrowStyle CssText="cursor: hand" />
                        <MonthStyle CssText="cursor:hand;margin-bottom:0px;margin-left:4px;margin-right:4px;margin-top:0px;" />
                        <DayHeaderStyle CssText="font-family:Verdana;font-size:8pt;border-bottom: #f5f5f5 1px solid" />
                        <DayStyle CssText="font-family:Verdana;font-size:8pt;" />
                        <DayHoverStyle CssText="font-family:Verdana;font-size:8pt;background-image:url('00040402');color:#1c7cdc;" />
                        <TodayStyle CssText="font-family:Verdana;font-size:8pt;background-image:url('00040401');color:#1176db;" />
                        <SelectedDayStyle CssText="font-family:Verdana;font-size:8pt;background-image:url('00040403');color:Brown;" />
                        <DisabledDayStyle CssText="font-family:Verdana;font-size:8pt;color: gray" />
                        <FooterTemplate>
                            <table border="0" cellPadding="0" cellspacing="5" 
                                style="font-size: 11px; font-family: Verdana">
                                <tr>
                                    <td width="30">
                                    </td>
                                    <td valign="center">
                                        <img src="{img:00040401}"></img></td>
                                    <td valign="center">
                                        Today: {var:today:MM/dd/yyyy}</td>
                                </tr>
                            </table>
                        </FooterTemplate>
                    </eo:DatePicker>
            <asp:TextBox ID="txtFromSub" runat="server"></asp:TextBox>
        </td>
        </tr>
       <tr>
        <td>To</td>
        <td colspan="3">
                    <eo:DatePicker ID="dpTo" runat="server" ControlSkinID="None" 
                        DayCellHeight="15" DayCellWidth="31" DayHeaderFormat="Short" DisabledDates="" 
                        OtherMonthDayVisible="True" SelectedDates="" TitleFormat="MMMM, yyyy" 
                        TitleLeftArrowImageUrl="DefaultSubMenuIconRTL" 
                        TitleRightArrowImageUrl="DefaultSubMenuIcon" 
                VisibleDate="2012-01-01">
                        <CalendarStyle CssText="background-color:white;border-bottom-color:Silver;border-bottom-style:solid;border-bottom-width:1px;border-left-color:Silver;border-left-style:solid;border-left-width:1px;border-right-color:Silver;border-right-style:solid;border-right-width:1px;border-top-color:Silver;border-top-style:solid;border-top-width:1px;color:#2C0B1E;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;" />
                        <TitleStyle CssText="font-family:Verdana;font-size:8.75pt;padding-bottom:5px;padding-left:5px;padding-right:5px;padding-top:5px;" />
                        <TitleArrowStyle CssText="cursor: hand" />
                        <MonthStyle CssText="cursor:hand;margin-bottom:0px;margin-left:4px;margin-right:4px;margin-top:0px;" />
                        <DayHeaderStyle CssText="font-family:Verdana;font-size:8pt;border-bottom: #f5f5f5 1px solid" />
                        <DayStyle CssText="font-family:Verdana;font-size:8pt;" />
                        <DayHoverStyle CssText="font-family:Verdana;font-size:8pt;background-image:url('00040402');color:#1c7cdc;" />
                        <TodayStyle CssText="font-family:Verdana;font-size:8pt;background-image:url('00040401');color:#1176db;" />
                        <SelectedDayStyle CssText="font-family:Verdana;font-size:8pt;background-image:url('00040403');color:Brown;" />
                        <DisabledDayStyle CssText="font-family:Verdana;font-size:8pt;color: gray" />
                        <FooterTemplate>
                            <table border="0" cellPadding="0" cellspacing="5" 
                                style="font-size: 11px; font-family: Verdana">
                                <tr>
                                    <td width="30">
                                    </td>
                                    <td valign="center">
                                        <img src="{img:00040401}"></img></td>
                                    <td valign="center">
                                        Today: {var:today:MM/dd/yyyy}</td>
                                </tr>
                            </table>
                        </FooterTemplate>
                    </eo:DatePicker>
            <asp:TextBox ID="txtToSub" runat="server"></asp:TextBox>
        </td>
        </tr>
    <tr>
        <td>No of Days:</td>
        <td colspan="3">
            <asp:TextBox ID="txtTotalDays" runat="server"></asp:TextBox>
        </td>
    </tr>
   </table >
   <table id="Schedule">
        <tr>
            <td style="width: 73px">Code</td>
            <td>Section</td>
            <td>Time</td>
            <td>Day/s</td>
        </tr>
        <tr>
            <td style="width: 73px">
                <asp:TextBox ID="txtcode" runat="server" Width="71px"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtSection" runat="server" Width="244px" 
                    style="margin-left: 0px"></asp:TextBox>
            </td>
            <td>
                <asp:DropDownList ID="ddlsThour" runat="server">
                    <asp:ListItem Value="1"></asp:ListItem>
                    <asp:ListItem Value="2"></asp:ListItem>
                    <asp:ListItem Value="3"></asp:ListItem>
                    <asp:ListItem Value="4"></asp:ListItem>
                    <asp:ListItem Value="5"></asp:ListItem>
                    <asp:ListItem Value="6"></asp:ListItem>
                    <asp:ListItem Value="7"></asp:ListItem>
                    <asp:ListItem Value="8"></asp:ListItem>
                    <asp:ListItem Value="9"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="11"></asp:ListItem>
                    <asp:ListItem Value="12"></asp:ListItem>
                </asp:DropDownList>
                <asp:DropDownList ID="ddlstMin" runat="server">
                    <asp:ListItem Value="05"></asp:ListItem>
                    <asp:ListItem Value="10"></asp:ListItem>
                    <asp:ListItem Value="15"></asp:ListItem>
                    <asp:ListItem Value="20"></asp:ListItem>
                    <asp:ListItem Value="25"></asp:ListItem>
                    <asp:ListItem Value="30"></asp:ListItem>
                    <asp:ListItem Value="35"></asp:ListItem>
                    <asp:ListItem Value="40"></asp:ListItem>
                    <asp:ListItem Value="45"></asp:ListItem>
                    <asp:ListItem Value="50"></asp:ListItem>
                    <asp:ListItem Value="55"></asp:ListItem>
                    <asp:ListItem Value="60"></asp:ListItem>
                </asp:DropDownList>
            <asp:TextBox ID="txtTime" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:DropDownList ID="ddlDays" runat="server">
                    <asp:ListItem>MWF</asp:ListItem>
                    <asp:ListItem>TTH</asp:ListItem>
                    <asp:ListItem>M</asp:ListItem>
                    <asp:ListItem>T</asp:ListItem>
                    <asp:ListItem>W</asp:ListItem>
                    <asp:ListItem>TH</asp:ListItem>
                    <asp:ListItem>F</asp:ListItem>
                </asp:DropDownList>
            <asp:TextBox ID="txtDays" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 73px">Room</td>
            <td>Subject</td>
            <td>Units Lec</td>
            <td>Units Lab</td>
        </tr>
        <tr>
            <td style="width: 73px">
                <asp:TextBox ID="txtRoom" runat="server" Width="68px"></asp:TextBox>
            </td>
            <td>
                <asp:TextBox ID="txtSubject" runat="server" Width="243px"></asp:TextBox>
            </td>
            <td>
                <asp:DropDownList ID="ddlUnitLec" runat="server">
                <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                </asp:DropDownList>
            <asp:TextBox ID="txtUnitLec" runat="server"></asp:TextBox>
            </td>
            <td>
                <asp:DropDownList ID="ddlLab" runat="server">
                    <asp:ListItem>1</asp:ListItem>
                    <asp:ListItem>2</asp:ListItem>
                    <asp:ListItem>3</asp:ListItem>
                </asp:DropDownList>
            <asp:TextBox ID="txtUnitLab" runat="server"></asp:TextBox>
            </td>
        </tr>
        </table>
   <div>
    <asp:Button ID="btnSave" runat="server" Text="Save" onclick="btnSave_Click" />
    <asp:Button ID="btnClear" runat="server" Text="Clear" />
    <asp:Button ID="btnClose" runat="server" Text="Close"/>
    </div>
        <table id="approval">
    <tr>
        <td>Chairperson/Supervisor</td>
        <td>
            <asp:DropDownList ID="ddlApproval1" runat="server" DataSourceID="head" 
                DataTextField="Status" DataValueField="ApprovalIDHead">
            </asp:DropDownList>
            <asp:SqlDataSource ID="head" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT * FROM [catApprovalHead]"></asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td>Dean/Director</td>
        <td>
            <asp:DropDownList ID="ddlApproval2" runat="server" DataSourceID="dead" 
                DataTextField="Status" DataValueField="ApprovalIDDean">
            </asp:DropDownList>
            <asp:SqlDataSource ID="dead" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT * FROM [catApprovalDean]"></asp:SqlDataSource>
        </td>
    </tr>
    <tr>
        <td>Human Resource Director</td>
        <td>
            <asp:DropDownList ID="ddlApproval3" runat="server" DataSourceID="hr" 
                DataTextField="ApprovalName" DataValueField="ApprovalIDHR">
            </asp:DropDownList>
            <asp:SqlDataSource ID="hr" runat="server" 
                ConnectionString="<%$ ConnectionStrings:HRmainConnectionString %>" 
                SelectCommand="SELECT * FROM [catApproval]"></asp:SqlDataSource>
        </td>
    </tr>     
    </table>
</div>
</asp:Content>
